home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / conv-rule.xul < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  64 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  6. <?xml-stylesheet href="chrome://dwhelper/skin/dwhelper.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://dwhelper/content/bindings.css" type="text/css"?>
  8.  
  9. <!DOCTYPE window SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  10.  
  11. <dialog id="dwhelper-conversion-rule"
  12.         title="&title.conversion-rule;"
  13.         flex="1"
  14.         onload="onLoad()"
  15.         buttons="help,accept,cancel"
  16.         ondialogaccept="return doOk();"
  17.         ondialoghelp="return doHelp();"
  18.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  19.         xmlns:html="http://www.w3.org/1999/xhtml"
  20.         Xpersist="screenX screenY"
  21.         >
  22.  
  23.     <script type="application/x-javascript"
  24.         src="chrome://dwhelper/content/dwhutil.js" />
  25.  
  26.     <script><![CDATA[
  27.  
  28. var Util=Components.classes["@downloadhelper.net/util-service;1"]
  29.     .getService(Components.interfaces.dhIUtilService);
  30.  
  31. function onLoad() {
  32.     var xRule=document.getElementById("xRule");
  33.     xRule.setData(window.arguments[0].datasource,window.arguments[0].ref);
  34.     window.arguments[0].ok=false;
  35. }
  36.  
  37. function doOk() {
  38.     var xRule=document.getElementById("xRule");
  39.     
  40.     if(!xRule.isValid())
  41.         return false;
  42.     
  43.     xRule.saveData();
  44.     window.arguments[0].ok=true;
  45.     return true;
  46. }
  47.  
  48. function doHelp() {
  49.     window.opener.open("http://www.downloadhelper.net/conversion-manual.php#use-rules");
  50.     return false;
  51. }
  52.  
  53. ]]>
  54.     </script>
  55.  
  56.     <vbox id="dwhelper-conversion-rule" flex="1">
  57.  
  58.         <ConvRule id="xRule" ref="urn:null" flex="1"/>
  59.  
  60.     </vbox>
  61.     
  62.  
  63. </dialog>
  64.